package kr.hkit.powerjava.chapter06.work2class;

import java.util.Scanner;

public class ForMain {

	public static void main(String[] args) {
		
		Scanner input = new Scanner (System.in);
		int suma = 0, ia = 0;
		int ib = 0, sumb = 0, nb = 0;
		int ic = 0, sumc = 0;
		int n2, nmg = 0;
		int guess = 0, answer = 0 ;
		
		System.out.println("<1번 문제 A>");
		ForWork01a w1 = new ForWork01a (suma, ia);
		System.out.println(w1);
	
		System.out.println("<1번 문제 B>");
		ForWork01b w2 = new ForWork01b (ib, sumb, nb);
		w2.totalb();
		
		System.out.println("<1번 문제 c>");
		ForWork01c w3 = new ForWork01c (sumc, ic);
		w3.totalc();
		
		System.out.println("<2번 문제>");
		System.out.print("정수를 입력하시오: ");
		n2 = input.nextInt();
		ForWork02 w4 = new ForWork02 (n2, nmg);
		w4.change();
		
		System.out.println("");
		System.out.println("<3번 문제>");
		ForWork03 w5 = new ForWork03 (guess,answer);
		w5.guessWhat();
		
	} 
}
